\begin{tikzpicture}

\definecolor{darkgray176}{RGB}{176,176,176}
\definecolor{green}{RGB}{0,128,0}

\begin{groupplot}[group style={group size=2 by 2}]
\nextgroupplot[
scaled x ticks=manual:{}{\pgfmathparse{#1}},
tick align=outside,
tick pos=left,
x grid style={darkgray176},
xmin=-0.245, xmax=5.145,
xtick style={color=black},
xticklabels={},
y grid style={darkgray176},
ymin=-1.1, ymax=1.1,
ytick style={color=black}
]
\addplot [semithick, blue]
table {%
0 1
0.1 0.80901699
0.2 0.30901699
0.3 -0.30901699
0.4 -0.80901699
0.5 -1
0.6 -0.80901699
0.7 -0.30901699
0.8 0.30901699
0.9 0.80901699
1 1
1.1 0.80901699
1.2 0.30901699
1.3 -0.30901699
1.4 -0.80901699
1.5 -1
1.6 -0.80901699
1.7 -0.30901699
1.8 0.30901699
1.9 0.80901699
2 1
2.1 0.80901699
2.2 0.30901699
2.3 -0.30901699
2.4 -0.80901699
2.5 -1
2.6 -0.80901699
2.7 -0.30901699
2.8 0.30901699
2.9 0.80901699
3 1
3.1 0.80901699
3.2 0.30901699
3.3 -0.30901699
3.4 -0.80901699
3.5 -1
3.6 -0.80901699
3.7 -0.30901699
3.8 0.30901699
3.9 0.80901699
4 1
4.1 0.80901699
4.2 0.30901699
4.3 -0.30901699
4.4 -0.80901699
4.5 -1
4.6 -0.80901699
4.7 -0.30901699
4.8 0.30901699
4.9 0.80901699
};

\nextgroupplot[
scaled x ticks=manual:{}{\pgfmathparse{#1}},
scaled y ticks=manual:{}{\pgfmathparse{#1}},
tick align=outside,
tick pos=left,
x grid style={darkgray176},
xmin=-0.245, xmax=5.145,
xtick style={color=black},
xticklabels={},
y grid style={darkgray176},
ymin=-1.1, ymax=1.1,
ytick style={color=black},
yticklabels={}
]
\addplot [semithick, red]
table {%
0 1
0.1 0.80901699
0.2 0.30901699
0.3 -0.30901699
0.4 -0.80901699
0.5 -1
0.6 -0.80901699
0.7 -0.30901699
0.8 0.30901699
0.9 0.80901699
1 1
1.1 0.80901699
1.2 0.30901699
1.3 -0.30901699
1.4 -0.80901699
1.5 -1
1.6 -0.80901699
1.7 -0.30901699
1.8 0.30901699
1.9 0.80901699
2 1
2.1 0.80901699
2.2 0.30901699
2.3 -0.30901699
2.4 -0.80901699
2.5 -1
2.6 -0.80901699
2.7 -0.30901699
2.8 0.30901699
2.9 0.80901699
3 1
3.1 0.80901699
3.2 0.30901699
3.3 -0.30901699
3.4 -0.80901699
3.5 -1
3.6 -0.80901699
3.7 -0.30901699
3.8 0.30901699
3.9 0.80901699
4 1
4.1 0.80901699
4.2 0.30901699
4.3 -0.30901699
4.4 -0.80901699
4.5 -1
4.6 -0.80901699
4.7 -0.30901699
4.8 0.30901699
4.9 0.80901699
};

\nextgroupplot[
tick align=outside,
tick pos=left,
x grid style={darkgray176},
xmin=-0.245, xmax=5.145,
xtick style={color=black},
y grid style={darkgray176},
ymin=-1.1, ymax=1.1,
ytick style={color=black}
]
\addplot [semithick, green]
table {%
0 1
0.1 0.80901699
0.2 0.30901699
0.3 -0.30901699
0.4 -0.80901699
0.5 -1
0.6 -0.80901699
0.7 -0.30901699
0.8 0.30901699
0.9 0.80901699
1 1
1.1 0.80901699
1.2 0.30901699
1.3 -0.30901699
1.4 -0.80901699
1.5 -1
1.6 -0.80901699
1.7 -0.30901699
1.8 0.30901699
1.9 0.80901699
2 1
2.1 0.80901699
2.2 0.30901699
2.3 -0.30901699
2.4 -0.80901699
2.5 -1
2.6 -0.80901699
2.7 -0.30901699
2.8 0.30901699
2.9 0.80901699
3 1
3.1 0.80901699
3.2 0.30901699
3.3 -0.30901699
3.4 -0.80901699
3.5 -1
3.6 -0.80901699
3.7 -0.30901699
3.8 0.30901699
3.9 0.80901699
4 1
4.1 0.80901699
4.2 0.30901699
4.3 -0.30901699
4.4 -0.80901699
4.5 -1
4.6 -0.80901699
4.7 -0.30901699
4.8 0.30901699
4.9 0.80901699
};

\nextgroupplot[
scaled y ticks=manual:{}{\pgfmathparse{#1}},
tick align=outside,
tick pos=left,
x grid style={darkgray176},
xmin=-0.245, xmax=5.145,
xtick style={color=black},
y grid style={darkgray176},
ymin=-1.1, ymax=1.1,
ytick style={color=black},
yticklabels={}
]
\addplot [semithick, black]
table {%
0 1
0.1 0.80901699
0.2 0.30901699
0.3 -0.30901699
0.4 -0.80901699
0.5 -1
0.6 -0.80901699
0.7 -0.30901699
0.8 0.30901699
0.9 0.80901699
1 1
1.1 0.80901699
1.2 0.30901699
1.3 -0.30901699
1.4 -0.80901699
1.5 -1
1.6 -0.80901699
1.7 -0.30901699
1.8 0.30901699
1.9 0.80901699
2 1
2.1 0.80901699
2.2 0.30901699
2.3 -0.30901699
2.4 -0.80901699
2.5 -1
2.6 -0.80901699
2.7 -0.30901699
2.8 0.30901699
2.9 0.80901699
3 1
3.1 0.80901699
3.2 0.30901699
3.3 -0.30901699
3.4 -0.80901699
3.5 -1
3.6 -0.80901699
3.7 -0.30901699
3.8 0.30901699
3.9 0.80901699
4 1
4.1 0.80901699
4.2 0.30901699
4.3 -0.30901699
4.4 -0.80901699
4.5 -1
4.6 -0.80901699
4.7 -0.30901699
4.8 0.30901699
4.9 0.80901699
};
\end{groupplot}

\end{tikzpicture}
